package ooday01;
/** 构造方法的演示 **/
public class ConsDemo {
    public static void main(String[] args) {
//        Student zs = new Student();
//        Student ls = new Student("张代伟",33,"JSD2302","001");
//        Student ml = new Student("马云峰",23,"JSD2302","002");
//        Student ML = new Student("刘顺国",33,"JSD2302","003");
//        zs.sayHi();
//        ls.sayHi();
//        ml.sayHi();
//        ML.sayHi();

        Car car1 = new Car();
        car1.brand="奥迪";
        car1.color="黑色";
        car1.price=10;
        car1.start();
        car1.run();
        car1.stop();
        Car car2 = new Car("奇瑞","红色",6);
        Car car3 = new Car("宝马","白银色",20);
        car2.start();
        car2.run();
        car2.stop();
        car3.start();
        car3.run();
        car3.stop();

    }
}
